The Curve Structure
You use thegxCurve
structure to specify the geometry of a curve shape.The
gxCurve
structure is defined as follows:
struct gxCurve { struct gxPoint first; struct gxPoint control; struct gxPoint last; };The curve defined by these three points is a quadratic Bézier curve.
Field Description
first
- The coordinate position where the curve begins.
control
- The coordinate position of the off-curve control point, which QuickDraw GX uses to determine the tangents of the curve.
last
- The coordinate position where the curve ends.
Because the geometric points that define a curve are ordered, curves have direction. The direction of a curve can affect how QuickDraw GX draws the curve shape, particularly when the curve shape has stylistic variations.
For more information about curves and curve shapes, see "Curve Shapes" on page 2-18.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help